#pragma once
#include <string>
#include "Result.h"
#include <vector>
#include <iostream>
#include <sstream>
using namespace std;
class Course
{
public:
	Course(void);
	Course(string courseName, int year);
	~Course(void);
	Course(Course& c);
	
	void addResult(Result* r);
	void read();

	string getName(){ return name;};
	int getYear(){ return year;};

	void setName(string s){ name = s;};
	vector<Result*> getResults();
	void setYear(int i){ year = i;};
	const stringstream Course::list();
	friend istream& operator>>(istream& i, Course& s);
	friend ostream& operator<< (ostream& o, Course& s);
private:
	string name;
	int year;
	vector<Result*> v;

};

